import { vi, expect, it, describe } from 'vitest';

import createAction from '../actions/<%= actionName %>.js';

describe('<%= integration %> <%= actionName %> tests', () => {
  const nangoMock = new global.vitest.NangoActionMock({ 
      dirname: '<%= integration %>',
      name: "<%= actionName %>",
      Model: "<%= output %>"
  });

  it('should output the action output that is expected', async () => {
      const input = await nangoMock.getInput();
      const response = await createAction.exec(nangoMock, input);
      const output = await nangoMock.getOutput();

      expect(response).toEqual(output);
  });
});
 